package com.siyuanren.gcocp.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class WxUserVoucherExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WxUserVoucherExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andAvailableIsNull() {
            addCriterion("available is null");
            return (Criteria) this;
        }

        public Criteria andAvailableIsNotNull() {
            addCriterion("available is not null");
            return (Criteria) this;
        }

        public Criteria andAvailableEqualTo(Boolean value) {
            addCriterion("available =", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableNotEqualTo(Boolean value) {
            addCriterion("available <>", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableGreaterThan(Boolean value) {
            addCriterion("available >", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableGreaterThanOrEqualTo(Boolean value) {
            addCriterion("available >=", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableLessThan(Boolean value) {
            addCriterion("available <", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableLessThanOrEqualTo(Boolean value) {
            addCriterion("available <=", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableIn(List<Boolean> values) {
            addCriterion("available in", values, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableNotIn(List<Boolean> values) {
            addCriterion("available not in", values, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableBetween(Boolean value1, Boolean value2) {
            addCriterion("available between", value1, value2, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableNotBetween(Boolean value1, Boolean value2) {
            addCriterion("available not between", value1, value2, "available");
            return (Criteria) this;
        }

        public Criteria andSortIsNull() {
            addCriterion("sort is null");
            return (Criteria) this;
        }

        public Criteria andSortIsNotNull() {
            addCriterion("sort is not null");
            return (Criteria) this;
        }

        public Criteria andSortEqualTo(Integer value) {
            addCriterion("sort =", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotEqualTo(Integer value) {
            addCriterion("sort <>", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortGreaterThan(Integer value) {
            addCriterion("sort >", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortGreaterThanOrEqualTo(Integer value) {
            addCriterion("sort >=", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortLessThan(Integer value) {
            addCriterion("sort <", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortLessThanOrEqualTo(Integer value) {
            addCriterion("sort <=", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortIn(List<Integer> values) {
            addCriterion("sort in", values, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotIn(List<Integer> values) {
            addCriterion("sort not in", values, "sort");
            return (Criteria) this;
        }

        public Criteria andSortBetween(Integer value1, Integer value2) {
            addCriterion("sort between", value1, value2, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotBetween(Integer value1, Integer value2) {
            addCriterion("sort not between", value1, value2, "sort");
            return (Criteria) this;
        }

        public Criteria andVoucherTitleIsNull() {
            addCriterion("voucher_title is null");
            return (Criteria) this;
        }

        public Criteria andVoucherTitleIsNotNull() {
            addCriterion("voucher_title is not null");
            return (Criteria) this;
        }

        public Criteria andVoucherTitleEqualTo(String value) {
            addCriterion("voucher_title =", value, "voucherTitle");
            return (Criteria) this;
        }

        public Criteria andVoucherTitleNotEqualTo(String value) {
            addCriterion("voucher_title <>", value, "voucherTitle");
            return (Criteria) this;
        }

        public Criteria andVoucherTitleGreaterThan(String value) {
            addCriterion("voucher_title >", value, "voucherTitle");
            return (Criteria) this;
        }

        public Criteria andVoucherTitleGreaterThanOrEqualTo(String value) {
            addCriterion("voucher_title >=", value, "voucherTitle");
            return (Criteria) this;
        }

        public Criteria andVoucherTitleLessThan(String value) {
            addCriterion("voucher_title <", value, "voucherTitle");
            return (Criteria) this;
        }

        public Criteria andVoucherTitleLessThanOrEqualTo(String value) {
            addCriterion("voucher_title <=", value, "voucherTitle");
            return (Criteria) this;
        }

        public Criteria andVoucherTitleLike(String value) {
            addCriterion("voucher_title like", value, "voucherTitle");
            return (Criteria) this;
        }

        public Criteria andVoucherTitleNotLike(String value) {
            addCriterion("voucher_title not like", value, "voucherTitle");
            return (Criteria) this;
        }

        public Criteria andVoucherTitleIn(List<String> values) {
            addCriterion("voucher_title in", values, "voucherTitle");
            return (Criteria) this;
        }

        public Criteria andVoucherTitleNotIn(List<String> values) {
            addCriterion("voucher_title not in", values, "voucherTitle");
            return (Criteria) this;
        }

        public Criteria andVoucherTitleBetween(String value1, String value2) {
            addCriterion("voucher_title between", value1, value2, "voucherTitle");
            return (Criteria) this;
        }

        public Criteria andVoucherTitleNotBetween(String value1, String value2) {
            addCriterion("voucher_title not between", value1, value2, "voucherTitle");
            return (Criteria) this;
        }

        public Criteria andVoucherFeeIsNull() {
            addCriterion("voucher_fee is null");
            return (Criteria) this;
        }

        public Criteria andVoucherFeeIsNotNull() {
            addCriterion("voucher_fee is not null");
            return (Criteria) this;
        }

        public Criteria andVoucherFeeEqualTo(Integer value) {
            addCriterion("voucher_fee =", value, "voucherFee");
            return (Criteria) this;
        }

        public Criteria andVoucherFeeNotEqualTo(Integer value) {
            addCriterion("voucher_fee <>", value, "voucherFee");
            return (Criteria) this;
        }

        public Criteria andVoucherFeeGreaterThan(Integer value) {
            addCriterion("voucher_fee >", value, "voucherFee");
            return (Criteria) this;
        }

        public Criteria andVoucherFeeGreaterThanOrEqualTo(Integer value) {
            addCriterion("voucher_fee >=", value, "voucherFee");
            return (Criteria) this;
        }

        public Criteria andVoucherFeeLessThan(Integer value) {
            addCriterion("voucher_fee <", value, "voucherFee");
            return (Criteria) this;
        }

        public Criteria andVoucherFeeLessThanOrEqualTo(Integer value) {
            addCriterion("voucher_fee <=", value, "voucherFee");
            return (Criteria) this;
        }

        public Criteria andVoucherFeeIn(List<Integer> values) {
            addCriterion("voucher_fee in", values, "voucherFee");
            return (Criteria) this;
        }

        public Criteria andVoucherFeeNotIn(List<Integer> values) {
            addCriterion("voucher_fee not in", values, "voucherFee");
            return (Criteria) this;
        }

        public Criteria andVoucherFeeBetween(Integer value1, Integer value2) {
            addCriterion("voucher_fee between", value1, value2, "voucherFee");
            return (Criteria) this;
        }

        public Criteria andVoucherFeeNotBetween(Integer value1, Integer value2) {
            addCriterion("voucher_fee not between", value1, value2, "voucherFee");
            return (Criteria) this;
        }

        public Criteria andVoucherOverdueDateIsNull() {
            addCriterion("voucher_overdue_date is null");
            return (Criteria) this;
        }

        public Criteria andVoucherOverdueDateIsNotNull() {
            addCriterion("voucher_overdue_date is not null");
            return (Criteria) this;
        }

        public Criteria andVoucherOverdueDateEqualTo(Date value) {
            addCriterionForJDBCDate("voucher_overdue_date =", value, "voucherOverdueDate");
            return (Criteria) this;
        }

        public Criteria andVoucherOverdueDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("voucher_overdue_date <>", value, "voucherOverdueDate");
            return (Criteria) this;
        }

        public Criteria andVoucherOverdueDateGreaterThan(Date value) {
            addCriterionForJDBCDate("voucher_overdue_date >", value, "voucherOverdueDate");
            return (Criteria) this;
        }

        public Criteria andVoucherOverdueDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("voucher_overdue_date >=", value, "voucherOverdueDate");
            return (Criteria) this;
        }

        public Criteria andVoucherOverdueDateLessThan(Date value) {
            addCriterionForJDBCDate("voucher_overdue_date <", value, "voucherOverdueDate");
            return (Criteria) this;
        }

        public Criteria andVoucherOverdueDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("voucher_overdue_date <=", value, "voucherOverdueDate");
            return (Criteria) this;
        }

        public Criteria andVoucherOverdueDateIn(List<Date> values) {
            addCriterionForJDBCDate("voucher_overdue_date in", values, "voucherOverdueDate");
            return (Criteria) this;
        }

        public Criteria andVoucherOverdueDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("voucher_overdue_date not in", values, "voucherOverdueDate");
            return (Criteria) this;
        }

        public Criteria andVoucherOverdueDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("voucher_overdue_date between", value1, value2, "voucherOverdueDate");
            return (Criteria) this;
        }

        public Criteria andVoucherOverdueDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("voucher_overdue_date not between", value1, value2, "voucherOverdueDate");
            return (Criteria) this;
        }

        public Criteria andVoucherStateIsNull() {
            addCriterion("voucher_state is null");
            return (Criteria) this;
        }

        public Criteria andVoucherStateIsNotNull() {
            addCriterion("voucher_state is not null");
            return (Criteria) this;
        }

        public Criteria andVoucherStateEqualTo(Integer value) {
            addCriterion("voucher_state =", value, "voucherState");
            return (Criteria) this;
        }

        public Criteria andVoucherStateNotEqualTo(Integer value) {
            addCriterion("voucher_state <>", value, "voucherState");
            return (Criteria) this;
        }

        public Criteria andVoucherStateGreaterThan(Integer value) {
            addCriterion("voucher_state >", value, "voucherState");
            return (Criteria) this;
        }

        public Criteria andVoucherStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("voucher_state >=", value, "voucherState");
            return (Criteria) this;
        }

        public Criteria andVoucherStateLessThan(Integer value) {
            addCriterion("voucher_state <", value, "voucherState");
            return (Criteria) this;
        }

        public Criteria andVoucherStateLessThanOrEqualTo(Integer value) {
            addCriterion("voucher_state <=", value, "voucherState");
            return (Criteria) this;
        }

        public Criteria andVoucherStateIn(List<Integer> values) {
            addCriterion("voucher_state in", values, "voucherState");
            return (Criteria) this;
        }

        public Criteria andVoucherStateNotIn(List<Integer> values) {
            addCriterion("voucher_state not in", values, "voucherState");
            return (Criteria) this;
        }

        public Criteria andVoucherStateBetween(Integer value1, Integer value2) {
            addCriterion("voucher_state between", value1, value2, "voucherState");
            return (Criteria) this;
        }

        public Criteria andVoucherStateNotBetween(Integer value1, Integer value2) {
            addCriterion("voucher_state not between", value1, value2, "voucherState");
            return (Criteria) this;
        }

        public Criteria andVoucherTypeIsNull() {
            addCriterion("voucher_type is null");
            return (Criteria) this;
        }

        public Criteria andVoucherTypeIsNotNull() {
            addCriterion("voucher_type is not null");
            return (Criteria) this;
        }

        public Criteria andVoucherTypeEqualTo(Integer value) {
            addCriterion("voucher_type =", value, "voucherType");
            return (Criteria) this;
        }

        public Criteria andVoucherTypeNotEqualTo(Integer value) {
            addCriterion("voucher_type <>", value, "voucherType");
            return (Criteria) this;
        }

        public Criteria andVoucherTypeGreaterThan(Integer value) {
            addCriterion("voucher_type >", value, "voucherType");
            return (Criteria) this;
        }

        public Criteria andVoucherTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("voucher_type >=", value, "voucherType");
            return (Criteria) this;
        }

        public Criteria andVoucherTypeLessThan(Integer value) {
            addCriterion("voucher_type <", value, "voucherType");
            return (Criteria) this;
        }

        public Criteria andVoucherTypeLessThanOrEqualTo(Integer value) {
            addCriterion("voucher_type <=", value, "voucherType");
            return (Criteria) this;
        }

        public Criteria andVoucherTypeIn(List<Integer> values) {
            addCriterion("voucher_type in", values, "voucherType");
            return (Criteria) this;
        }

        public Criteria andVoucherTypeNotIn(List<Integer> values) {
            addCriterion("voucher_type not in", values, "voucherType");
            return (Criteria) this;
        }

        public Criteria andVoucherTypeBetween(Integer value1, Integer value2) {
            addCriterion("voucher_type between", value1, value2, "voucherType");
            return (Criteria) this;
        }

        public Criteria andVoucherTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("voucher_type not between", value1, value2, "voucherType");
            return (Criteria) this;
        }

        public Criteria andVoucherCourseIdIsNull() {
            addCriterion("voucher_course_id is null");
            return (Criteria) this;
        }

        public Criteria andVoucherCourseIdIsNotNull() {
            addCriterion("voucher_course_id is not null");
            return (Criteria) this;
        }

        public Criteria andVoucherCourseIdEqualTo(Integer value) {
            addCriterion("voucher_course_id =", value, "voucherCourseId");
            return (Criteria) this;
        }

        public Criteria andVoucherCourseIdNotEqualTo(Integer value) {
            addCriterion("voucher_course_id <>", value, "voucherCourseId");
            return (Criteria) this;
        }

        public Criteria andVoucherCourseIdGreaterThan(Integer value) {
            addCriterion("voucher_course_id >", value, "voucherCourseId");
            return (Criteria) this;
        }

        public Criteria andVoucherCourseIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("voucher_course_id >=", value, "voucherCourseId");
            return (Criteria) this;
        }

        public Criteria andVoucherCourseIdLessThan(Integer value) {
            addCriterion("voucher_course_id <", value, "voucherCourseId");
            return (Criteria) this;
        }

        public Criteria andVoucherCourseIdLessThanOrEqualTo(Integer value) {
            addCriterion("voucher_course_id <=", value, "voucherCourseId");
            return (Criteria) this;
        }

        public Criteria andVoucherCourseIdIn(List<Integer> values) {
            addCriterion("voucher_course_id in", values, "voucherCourseId");
            return (Criteria) this;
        }

        public Criteria andVoucherCourseIdNotIn(List<Integer> values) {
            addCriterion("voucher_course_id not in", values, "voucherCourseId");
            return (Criteria) this;
        }

        public Criteria andVoucherCourseIdBetween(Integer value1, Integer value2) {
            addCriterion("voucher_course_id between", value1, value2, "voucherCourseId");
            return (Criteria) this;
        }

        public Criteria andVoucherCourseIdNotBetween(Integer value1, Integer value2) {
            addCriterion("voucher_course_id not between", value1, value2, "voucherCourseId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andSponsorUserIdIsNull() {
            addCriterion("sponsor_user_id is null");
            return (Criteria) this;
        }

        public Criteria andSponsorUserIdIsNotNull() {
            addCriterion("sponsor_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andSponsorUserIdEqualTo(Integer value) {
            addCriterion("sponsor_user_id =", value, "sponsorUserId");
            return (Criteria) this;
        }

        public Criteria andSponsorUserIdNotEqualTo(Integer value) {
            addCriterion("sponsor_user_id <>", value, "sponsorUserId");
            return (Criteria) this;
        }

        public Criteria andSponsorUserIdGreaterThan(Integer value) {
            addCriterion("sponsor_user_id >", value, "sponsorUserId");
            return (Criteria) this;
        }

        public Criteria andSponsorUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("sponsor_user_id >=", value, "sponsorUserId");
            return (Criteria) this;
        }

        public Criteria andSponsorUserIdLessThan(Integer value) {
            addCriterion("sponsor_user_id <", value, "sponsorUserId");
            return (Criteria) this;
        }

        public Criteria andSponsorUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("sponsor_user_id <=", value, "sponsorUserId");
            return (Criteria) this;
        }

        public Criteria andSponsorUserIdIn(List<Integer> values) {
            addCriterion("sponsor_user_id in", values, "sponsorUserId");
            return (Criteria) this;
        }

        public Criteria andSponsorUserIdNotIn(List<Integer> values) {
            addCriterion("sponsor_user_id not in", values, "sponsorUserId");
            return (Criteria) this;
        }

        public Criteria andSponsorUserIdBetween(Integer value1, Integer value2) {
            addCriterion("sponsor_user_id between", value1, value2, "sponsorUserId");
            return (Criteria) this;
        }

        public Criteria andSponsorUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("sponsor_user_id not between", value1, value2, "sponsorUserId");
            return (Criteria) this;
        }

        public Criteria andActiveIdIsNull() {
            addCriterion("active_id is null");
            return (Criteria) this;
        }

        public Criteria andActiveIdIsNotNull() {
            addCriterion("active_id is not null");
            return (Criteria) this;
        }

        public Criteria andActiveIdEqualTo(Integer value) {
            addCriterion("active_id =", value, "activeId");
            return (Criteria) this;
        }

        public Criteria andActiveIdNotEqualTo(Integer value) {
            addCriterion("active_id <>", value, "activeId");
            return (Criteria) this;
        }

        public Criteria andActiveIdGreaterThan(Integer value) {
            addCriterion("active_id >", value, "activeId");
            return (Criteria) this;
        }

        public Criteria andActiveIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("active_id >=", value, "activeId");
            return (Criteria) this;
        }

        public Criteria andActiveIdLessThan(Integer value) {
            addCriterion("active_id <", value, "activeId");
            return (Criteria) this;
        }

        public Criteria andActiveIdLessThanOrEqualTo(Integer value) {
            addCriterion("active_id <=", value, "activeId");
            return (Criteria) this;
        }

        public Criteria andActiveIdIn(List<Integer> values) {
            addCriterion("active_id in", values, "activeId");
            return (Criteria) this;
        }

        public Criteria andActiveIdNotIn(List<Integer> values) {
            addCriterion("active_id not in", values, "activeId");
            return (Criteria) this;
        }

        public Criteria andActiveIdBetween(Integer value1, Integer value2) {
            addCriterion("active_id between", value1, value2, "activeId");
            return (Criteria) this;
        }

        public Criteria andActiveIdNotBetween(Integer value1, Integer value2) {
            addCriterion("active_id not between", value1, value2, "activeId");
            return (Criteria) this;
        }

        public Criteria andVoucherIdIsNull() {
            addCriterion("voucher_id is null");
            return (Criteria) this;
        }

        public Criteria andVoucherIdIsNotNull() {
            addCriterion("voucher_id is not null");
            return (Criteria) this;
        }

        public Criteria andVoucherIdEqualTo(Integer value) {
            addCriterion("voucher_id =", value, "voucherId");
            return (Criteria) this;
        }

        public Criteria andVoucherIdNotEqualTo(Integer value) {
            addCriterion("voucher_id <>", value, "voucherId");
            return (Criteria) this;
        }

        public Criteria andVoucherIdGreaterThan(Integer value) {
            addCriterion("voucher_id >", value, "voucherId");
            return (Criteria) this;
        }

        public Criteria andVoucherIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("voucher_id >=", value, "voucherId");
            return (Criteria) this;
        }

        public Criteria andVoucherIdLessThan(Integer value) {
            addCriterion("voucher_id <", value, "voucherId");
            return (Criteria) this;
        }

        public Criteria andVoucherIdLessThanOrEqualTo(Integer value) {
            addCriterion("voucher_id <=", value, "voucherId");
            return (Criteria) this;
        }

        public Criteria andVoucherIdIn(List<Integer> values) {
            addCriterion("voucher_id in", values, "voucherId");
            return (Criteria) this;
        }

        public Criteria andVoucherIdNotIn(List<Integer> values) {
            addCriterion("voucher_id not in", values, "voucherId");
            return (Criteria) this;
        }

        public Criteria andVoucherIdBetween(Integer value1, Integer value2) {
            addCriterion("voucher_id between", value1, value2, "voucherId");
            return (Criteria) this;
        }

        public Criteria andVoucherIdNotBetween(Integer value1, Integer value2) {
            addCriterion("voucher_id not between", value1, value2, "voucherId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}